import { createApp } from 'vue'
import './styles/global.scss'
import i18n from '@/lang'
import ElementPlus from 'element-plus'
import 'amfe-flexible'
import 'element-plus/dist/index.css'
import './styles/element/theme.scss'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import './utils/rem.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
 app.component(key, component)
}
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(i18n)
app.mount('#app')
